<layout name='Layout/layout_page' />

	<ol class="breadcrumb">
		<li><a href="<{:U('One/index')}>"><{:L('_menu_one')}></a></li>
      	<li class="active"><{:L(_public_add)}></li>
    </ol>


	<form id="ajaxForm" action="<{:U('One/save')}>" method="post" class="form-horizontal form-validata">
		<div class="form-group">
			<label class="col-md-1 control-label" for="">Title</label>
			<div class="col-md-11">
				<input type="text"
                class="form-control"
				name="title"
				id="title"
				data-rule-required="true"
				/>
			</div>
		</div>	
		<div class="form-group">
			<label class="col-md-1 control-label" for="keyword">keywords</label>
			<div class="col-md-11">
				<input type="text"
                class="form-control"
				name="keyword"
				id="keyword"
				class="span5"
				/>
				<p>Multiple keywords with "," number separated</p>
			</div>
		</div>
		<div class="form-group">
			<label class="col-md-1 control-label" for="description">Description</label>
			<div class="col-md-11">
				<textarea name="description" class="form-control areatext"></textarea>
			</div>
		</div>
		<div class="form-group">
			<label class="col-md-1 control-label" for="content">Content</label>
			<div class="col-md-11">
				<textarea name="content" id="container">Article text</textarea>
				<script type="text/javascript" src="<{:C('UE_DIR')}>/my.config.js"></script>
				<script type="text/javascript" src="<{:C('UE_DIR')}>/ueditor.all.js"></script>
				<script type="text/javascript" src="<{:C('UE_DIR')}>/lang/zh-cn/zh-cn.js"></script>
				<script type="text/javascript">
				var defPath = "<{:C('UPLOAD_PATH')}>";
				window.UEDITOR_CONFIG.imagePath= defPath;  //插入编辑器中图片路径修正
				window.UEDITOR_CONFIG.filePath= defPath; //插入编辑器中文件路径修正
				window.UEDITOR_CONFIG.scrawlPath= defPath; //涂鸦默认路径
				var editor = UE.getEditor('container');
				</script>
			</div>
		</div>	

		<div class="form-group">	
			<div class="col-md-11 col-sm-offset-1">
				<button type="submit" class="btn btn-info"><{:L(_public_add)}></button>
			</div>
		</div>
	</form>


<input type="hidden" id="menu_action" value="one" />